package com.yanqu.road.server.cmd.cross.group;

import com.yanqu.road.pb.cross.group.CrossGroupProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.cross.CrossDataMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_GROUP_SYNC_MAMMON_RECORD, desc = "跨服分组财神簿同步")
public class CrossGroupMammonRecordListSyncCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		CrossGroupProto.CrossGroupMammonRecordListMsg reqMsg = CrossGroupProto.CrossGroupMammonRecordListMsg.parseFrom(packet.getBytes());
		CrossDataMgr.crossGroupMammonRecordListSync(reqMsg);
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
